<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
      <%@ taglib uri="/struts-tags" prefix="s"%>
            <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><s:text name='editAndReply'/></title>
<link rel="stylesheet" href="view/question/css/edit-style.css" type="text/css" media="screen">
<link rel="stylesheet" href="view/question/css/ask-style.css" type="text/css" media="screen">
<link rel="stylesheet" href="view/question/css/global.css" type="text/css" media="screen">

<link rel="stylesheet" href="view/question/js/pagination/pagination.css" type="text/css" media="screen">
<link rel="stylesheet" href="kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="kindeditor/plugins/code/prettify.css" />
<link rel="stylesheet" href="js/thickbox/thickbox.css" type="text/css" />
<link rel="stylesheet" href="js/star/star.css" type="text/css" />

<script type="text/javascript" src="view/question/js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="view/question/js/pagination/jquery.pagination.js"></script>
<script type="text/javascript" src="daoepingjs/script_common.js"></script> 
<script type="text/javascript" src="view/question/myjs/question.js"></script> 
<script type="text/javascript" src="view/question/myjs/nation.jsp"></script> 
<script type="text/javascript" src="js/thickbox/thickbox-compressed.js" ></script>
<script type="text/javascript" src="js/star/star.js"></script>



</head>
<script type="text/javascript"  language="javascript">

$(document).ready(function() {
	
	// filter order by
	if($("#hidden_concern_del").attr("value")==""){
		$("#concern_add").show();
		$("#concern_del").hide();
	}else{
		$("#concern_add").hide();
		$("#concern_del").show();
	}
	if($("#userId").attr("value")==$("#edit_question_userid").attr("value")){
		$("#concern_add").hide();
		$("#concern_del").hide();
	}else{
		$("#ques_edit").hide();
	}
	
});

</script>
<body>

<div id="star_messagebox" style="display:none">
<div id="star" >
		<span>js星级评论打分</span>
		<ul>
			<li><a href="javascript:;" >1</a></li>
			<li><a href="javascript:;">2</a></li>
			<li><a href="javascript:;">3</a></li>
			<li><a href="javascript:;">4</a></li>
			<li><a href="javascript:;">5</a></li>
		</ul>
		<span></span>
		<p></p>
		<input type="hidden" id="anscomm_rank" ></input>
		<input type="hidden" id="anscomm_ansid" ></input>
		<input type="hidden" id="anscomm_avg" ></input>
		<input type="hidden" id="anscomm_num" ></input>
		
		
</div><!--star end-->
<!-- <textarea rows="4" cols="30" id="anscomm_content"></textarea> -->
<input type="button" value="submit" onclick="answercommSubmit()"/>
</div>





<input type="hidden" id="hidden_concern_del" value="${follow}"/> 
<input type="hidden" id="hidden_concern_add" value="${question.id}"/>
<input type="hidden"  value="${user.id}" id="userId"/>

<div class="notice"></div>
<div class="navigation-bar">
	<div class="personal">
	 <a href="#"><img src="view/question/image/p1.gif" alt="" /><s:text name='manManLi'/></a>
	 <a href="#"><s:text name='myDaoEPing'/></a>
	 <a href="#"><s:text name='myCenter'/></a>
	 <br/>
	 <span ><s:text name='theTestArchitect'/></span>
	 <span ><s:text name='shangHai'/></span>
	</div>
	<div class="clear"></div>
</div>
<div class = "body-content">
<div id="main-content">
  <div class="edit-answer" id="show_content">
	   <div class="q-title">
	   <!-- question owner -->
	  <input type="hidden" name="bzn_question.usr_user.id" value="${question.usr_user.id}" />
	  <input type="hidden" value = "${question.id}"   />
	   <span class="title-content">${question.title}</span>
	   <span class="edit"><a id = "ques_edit" onclick="questionDraftEditorShow()" style="cursor:hand"><s:text name='edit'/></a></span>
	   </div>
		<div class="field">
		${question.bsc_category.name}
	
	<%-- 	<select id = "question_category" >
		
		</select> --%>
		</div>
		<div >
		${question.content}
      <!--   <textarea class="edit-content" disabled="disabled"></textarea> -->
		</div>
        <div >
						<a href="javascript:void(0)" onclick="Goto('reply')" ><img src="view/question/image/icon/ans.png" alt="" /><s:text name='reply'/></a>
							<a href="javascript:void(0)" onclick="Goto('comment')"> <img src="view/question/image/icon/comment.gif" alt="" /><s:text name='comment'/></a>
							 <img src="view/question/image/icon/share.png" alt="" /><s:text name='share'/>
							<%-- <a onclick = "addQuestionfavorite(${question.id})" style='cursor:hand'> <img src="view/question/image/icon/flag.png" alt="" /><s:text name='collection'/></a>	 --%>				
		</div>
	</div>
	
		<div class="edit-answer" id="edit_content" style="display:none">
	<form action="editBzn_question.action" id="question_form" method="post">
  		<div class="q-title">
	  		<!-- question owner -->
			<input type="hidden" name="bzn_question.usr_user.id" value="${question.usr_user.id}"  id="edit_question_userid"/>
			<input type="hidden" value = "${question.id}"   name="bzn_question.id"/>
			<input type="hidden" value = "question"   name="page.flag" id="page_flag"/>
			<input type="hidden" name="bzn_question.flag"  id = "question_flag" value = "${question.flag}" />
		  	<span class="title-content">   
		  		<input type="text" value="${question.title}" name="bzn_question.title"/>
		  	</span>
		</div>
		<div class="field">
			<input type="hidden" value="${question.bsc_category.id}" id="question_category_selected"/>
			<select id="question_category" name="bzn_question.bsc_category.id"></select>
		</div>	
		<div >
			<input type="hidden" value="${question.content}" id="question_content_hidden"/>
			<textarea id="question_content_edit" name="bzn_question.content"></textarea>
		</div>
		<input type="button" value="<s:text name='submit'/>" onclick="questionSubmit('')"/> <input type="button" value="<s:text name='cancel'/>" onclick="questionDraftEditorShow()"/>
     </form>
	</div>
	
	
		<div id="nav-button">
                <input  class="reply" type="button" value="<s:text name='reply'/>" onclick="changeSubmitAction('reply')">		
				<input class="comment" type="button" value="<s:text name='comment'/>" onclick="changeSubmitAction('comment')">	
				<div class="clear"> </div>
		</div>
		<div id = "questions"> 

			<div id="question-list">
				<div class="single-question">
					<a class= "q-head" href="#"><img src="view/question/image/p1.gif" alt= "<s:text name='hereIsTheHead'/>" > </a>
					<div class="q-content">
						<div class="source">
							<a class= "info" href="#"> <s:text name='deHuaLiu'/> </a>
							<span> <s:text name='shangHai'/> </span>
							<span> <s:text name='theTestArchitect'/> </span>
							<span class="time"> <s:text name='twoHoursAgo'/> </span>						
						</div>
						<div class="clear"></div>		
						<div>
							<p >
							I would like to remind that this Fridayis the monthly cut-off day, pls book your time on time and let me know if there is any question/issue to meet the deadline. Last minutes notice would not be ......							</p>
							<div class="tool-bar">

							<a href="#"> <img src="view/question/image/icon/comment.gif" alt="" /><s:text name='comment'/></a>
							<a href="#"> <img src="view/question/image/icon/flag.png" alt="" /><s:text name='praise'/></a>
							<a href="#"> <img src="view/question/image/icon/editIcon.gif" alt="" /><s:text name='edit'/></a>
							<a href="#"> <img src="view/question/image/icon/deleteIcon.png" alt="" /><s:text name='delete'/></a>							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div> 
            </div>	
            <div id="Pagination" class="flickr" style="dispaly:none"></div>
		</div>
		   <form id="question_form_qa" action="addBzn_answer.action" method="post">
		 <div ><input type="button" value="reply" onclick="questionShowOrHide()" id="question_answer_flag"/> </div>
        <div  id = "question_answer" style="display:none">
     	<textarea id="question_content" name="bzn_answer.content" class="editor"  style="width:600px;height:200px;"></textarea>
		
		<input type="hidden" name="bzn_answer.usr_user.id" value="${user.id}" id="question_userid"/>
		<input type="hidden" name="bzn_answer.bzn_question.id" value="${question.id}" id="question_id"/>
		
		
		 <input class="submit"  type="button" value="<s:text name='submit'/>" onclick="questionSubmit('questioncomm_answer')"/>
       </div>
       </form>
		<div class="clear"></div>
		
  </div>
 
  <div id="left-bar">
  <div id="note">
  <input id="concern_add" class="notice" type="button" value="<s:text name='concern'/>" onclick="concernShowOrHide()"  />		
  <input id="concern_del" class="notice" type="button" value="<s:text name='cancel' /><s:text name='concern'/>"  onclick="concernShowOrHide()"  />	
   <input id="hide_fav" class="collect" type="button" value="<s:text name='collection'/>">	
  <span> 376 people pay attention to this problem
</span>
  </div>
  <div id="share">
	  <h3><s:text name='shareQuestion'/></h3>
	  <div>
		  <a href="#"><s:text name='weibo'/></a>
		  <a href="#"><s:text name='email'/></a>
		  <a href="#"><s:text name='inStationLetter'/></a>
	  </div>
  </div>
  <div id="relative">
  	  <h3><s:text name='relatedIssuesList' /></h3>
	  <a href="#"><s:text name='questionOne' /></a>
	  <a href="#"><s:text name='questionTwo' /></a>
	  <a href="#"><s:text name='questionThree' /></a>
  </div>
  </div>
	


</div>

</body>
<script type="text/javascript"  language="javascript">

$(document).ready(function() {
	 selectData("question_category","","findBsc_categoryList","" ); 
 	 selectedData("question_category","question_category_selected");
	 findAllAnswerList(0);    
	

});




</script>
</html>
